package cn.com.jcoo.mp.entity.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统消息主体表
 * </p>
 *
 * @author jinty
 * @since 2024-01-22
 */
@Getter
@Setter
@TableName("sys_message")
@Schema(name = "SysMessage对象", description = "系统消息主体表")
public class SysMessage implements Serializable {

	private static final long serialVersionUID = 1L;

	@Schema(name = "主键id")
	@TableId("key_id")
	private Integer keyId;

	@Schema(name = "创建者")
	private String createBy;

	@Schema(name = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@Schema(name = "最近更新者")
	private LocalDateTime updateBy;

	@Schema(name = "最近更新时间")
	private LocalDateTime updateTime;

	@Schema(name = "逻辑删除标记：1-已删除，0-未删除")
	private Byte isDeleted;

	@Schema(name = "数据版本标识")
	private Integer version;

	@Schema(name = "消息分类字典code")
	private Integer msgTypeDictId;

	@Schema(name = "消息分类")
	private String msgType;

	@Schema(name = "消息标签id")
	private Integer msgTagId;

	@Schema(name = "消息标签")
	private String msgTag;

	private String msgTitle;

	@Schema(name = "消息主体")
	private String msgBody;

	@Schema(name = "发送者id")
	private Integer sender;

	@Schema(name = "接收者id")
	private Integer receiver;
}
